package org.xzx.cloud.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.xzx.cloud.entity.UserRoleMapping;

public interface UserRoleMappingRepository extends JpaRepository<UserRoleMapping, Integer> {

    /**
     * 通过 userId 寻找数据记录
     *
     * @param userId
     * @return
     */
    UserRoleMapping findByUserId(Long userId);
}
